/**
 * @Description : 定义静态路由
 * @author : August_xiao 1932794922@qq.com
 * @date : 2022-03-18 21:47
 */

const staticRoutes = [
  {
    path: '/',
    name: 'Body',
    component: () => import('@/views/home/Body.vue'),
    meta: {
      KeepAlive: true,
      title: '首页'
    }
  },
  {
    path: '/home',
    name: 'Home',
    component: () => import('@/views/Home'),
    redirect: '/',
    children: {
      component: () => import('@/views/home/Body.vue')
    }
  },
  {
    path: '/tag',
    name: 'Tag',
    component: () => import('@/views/tag/Tag.vue'),
    meta: {
      title: '标签'
    }
  },
  {
    path: '/article/:id?',
    name: 'Article',
    component: () => import('@/views/blog/ArticleDetails.vue'),
    meta: {
      title: '博客文章'
    }
  },
  {
    path: '/healthReport/:id?',
    name: 'HealthReport',
    component: () => import('@/views/custom/HealthReport.vue'),
    meta: {
      title: '卫士报告'
    }
  },
  {
    path: '/:pathMatch(.*)*',
    name: '404',
    component: () => import('@/views/error/404.vue'),
    meta: {
      title: '页面失效啦'
    }
  }
]

export default staticRoutes
